package com.hydl.power.controller;

import com.hydl.power.aop.annotation.LogAnnotation;
import com.hydl.power.service.CarService;
import com.hydl.power.utils.Resp;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(value = "CarController", tags = "车辆下拉框")
@RestController
@RequestMapping("/car")
public class CarController {

    @Autowired
    private CarService carService;

    //@LogAnnotation(module = "车辆下拉框",description = "查询所有车辆")
    @GetMapping("carlist")
    @ApiOperation("查询所有车辆")
    public Resp CarList() {

        return carService.selectAll();


    }

}
